#include <iostream>
#include <string>
#include "StringNode.h"

StringNode::StringNode(string name,int freq):word(name),rightptr(0)
{
	
	frequency=freq;
	
}
string StringNode::getWordName()
{
	
	return word;
}
int StringNode::getFrequency()
{
	return frequency;
}
int StringNode::assignNextPtr(StringNode *node)
{
	if(this->rightptr=node)
	{
		return 1;
	}
	else
		return 0;
}
void StringNode::incrementFrequency()
{
	frequency++;
}



